package com.luban.service;

import com.luban.entity.Person;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class TestFactoryBean implements FactoryBean<Object> {


	@Override
	public Object getObject() throws Exception {
		System.out.println("调用TestFactoryBean的getObject()方法。。。");
		return new Person();
	}

	@Override
	public Class<?> getObjectType() {
		return Person.class;
	}
}
